﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="usermanage.aspx.cs" Inherits="messageboard.admin.usermanage"
    MasterPageFile="~/Site1.Master" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="js/jquery-1.7.2.min.js">
        $(document).ready(function () {
            $(".logo2").animate({ opacity: 0 }, 1);
            
            
            $(".back").click(function () {
                
                $(".logo2").animate({ opacity: 1 }, 400);
            });
        });

    </script>
</asp:Content>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="logo2" style="position: absolute; top: 0px; left: 110px">
            <div class="logo1" style="background-color: #CC0066; width: 10%; height: 10%; font-size: 10%"
                onclick="document.location='/message.aspx'">
                <br />
                <img src="/images/News.png" alt="Alternate Text" width="30px" height="30px" /><br />
                查看留言
            </div>
            <div class="logo1" style="background-color: #0998FF; width: 10%; height: 10%; font-size: 10%"
                onclick="document.location='/message.aspx#message'">
                <br />
                <img src="/images/Messaging.png" alt="Alternate Text" width="30px" height="30px" /><br />
                <br />
                发布留言
            </div>
            <div class="logo1" style="background-color: #FFCC00; width: 10%; height: 10%; font-size: 10%"
                onclick="document.location='/admin/usermanage.aspx'">
                <br />
                <img src="/images/Contacts.png" alt="Alternate Text" width="35px" height="30px" /><br />
                <br />
                用户管理
            </div>
            <div class="logo1" style="background-color: #33CC33; width: 10%; height: 10%; font-size: 10%"
                onclick="document.location='/admin/messagemanage.aspx'">
                <br />
                <img src="/images/Configure alt 3.png" alt="Alternate Text" width="30px" height="30px" /><br />
                <br />
                留言管理
            </div>
        </div>
    <div style="text-align: center;">
        <div class="back">
            <asp:Image ID="Image2" runat="server" ImageUrl="~/images/Metro-Back-48.png"  />
        </div>
        
        <asp:Label ID="Label1" runat="server" Text="用户管理" Font-Size="X-Large"></asp:Label>
        <div style="position: absolute; top: 300px; left: 350px" id="login" runat="server">
            如果你您是管理员的话，请先
            <div class="button" onclick="document.location='/Default.aspx'" style="cursor: pointer;">
                登录
            </div>
        </div>
        <br />
        <br />
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="3"
            GridLines="None" Height="16px" Width="890px" BackColor="White" CellSpacing="1"
            PageSize="15" AllowPaging="true" OnRowDeleting="GridView1_RowDeleting" DataKeyNames="name"
            OnRowDeleted="GridView1_RowDeleted" OnPageIndexChanging="GridView1_PageIndexChanging">
            <Columns>
                <asp:BoundField HeaderText="用户名" DataField="name" />
                <asp:BoundField HeaderText="Email" DataField="email" />
                <asp:BoundField HeaderText="年龄" DataField="age" />
                <asp:BoundField HeaderText="性别" DataField="sex" />
                <asp:TemplateField HeaderText="头像">
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%#"~/image/face/("+Eval("face")+").png" %>'
                            Height="50" Width="50" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ShowDeleteButton="True" HeaderText="操作" ControlStyle-ForeColor="White" />
            </Columns>
            <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
            <HeaderStyle BackColor="#3399FF" Font-Bold="True" ForeColor="#000000" Height="40" />
            <PagerStyle BackColor="#3399FF" ForeColor="Black" HorizontalAlign="Right" />
            <RowStyle BackColor="#FF9900" ForeColor="Black" />
            <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#594B9C" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#33276A" />
        </asp:GridView>
    </div>
    <br />
    <br />
</asp:Content>
